<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libslic3r: src/libslic3r/Fill/Fill.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Slic3r_192px_transparent.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libslic3r
   </div>
   <div id="projectbrief">Library for generating gcode from 3d models</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_f69e6fbaea45487e96bc9ed8ccf9ff8f.html">libslic3r</a></li><li class="navelem"><a class="el" href="dir_10c1722f8d09bb92760dc3ef99d9d247.html">Fill</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Fill.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_fill_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef slic3r_Fill_hpp_</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define slic3r_Fill_hpp_</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;assert.h&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;memory.h&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;float.h&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;../libslic3r.h&quot;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;../BoundingBox.hpp&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;../ExPolygon.hpp&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;../Polyline.hpp&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;../PrintConfig.hpp&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_slic3r.html">Slic3r</a> {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">class </span><a class="code" href="class_slic3r_1_1_surface.html">Surface</a>;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// Abstract base class for the infill generators.</span></div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html">   20</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_slic3r_1_1_fill.html">Fill</a></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;{</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <span class="comment">// Index of the layer.</span></div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#ac27c24dafac249a26f8f040252a3a4c5">   24</a></span>&#160;    <span class="keywordtype">size_t</span>      <a class="code" href="class_slic3r_1_1_fill.html#ac27c24dafac249a26f8f040252a3a4c5">layer_id</a>;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    </div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <span class="comment">// Z coordinate of the top print surface, in unscaled coordinates</span></div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#a12967046cdc37118b196e50e580a0ab2">   27</a></span>&#160;    <a class="code" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a>    <a class="code" href="class_slic3r_1_1_fill.html#a12967046cdc37118b196e50e580a0ab2">z</a>;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    </div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="comment">// in unscaled coordinates</span></div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#af8adc3aa53df4a6ec46f6e798d9c79f5">   30</a></span>&#160;    <a class="code" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a>    <a class="code" href="class_slic3r_1_1_fill.html#af8adc3aa53df4a6ec46f6e798d9c79f5">min_spacing</a>;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    </div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="comment">// overlap over spacing for extrusion endpoints</span></div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#adc87bb3ac6251d9c145c963c6dd5ca1e">   33</a></span>&#160;    <span class="keywordtype">float</span>       <a class="code" href="class_slic3r_1_1_fill.html#adc87bb3ac6251d9c145c963c6dd5ca1e">endpoints_overlap</a>;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    </div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="comment">// in radians, ccw, 0 = East</span></div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#aad52233b49247e94b2823c23490a28e2">   36</a></span>&#160;    <span class="keywordtype">float</span>       <a class="code" href="class_slic3r_1_1_fill.html#aad52233b49247e94b2823c23490a28e2">angle</a>;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    </div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="comment">// In scaled coordinates. Maximum lenght of a perimeter segment connecting two infill lines.</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="comment">// Used by the FillRectilinear2, FillGrid2, FillTriangles, FillStars and FillCubic.</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="comment">// If left to zero, the links will not be limited.</span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#a54a56f5bc04922e2c94d215872c8647c">   41</a></span>&#160;    <a class="code" href="namespace_slic3r.html#ab6d77625bc973b0c03e577944f90f297">coord_t</a>     <a class="code" href="class_slic3r_1_1_fill.html#a54a56f5bc04922e2c94d215872c8647c">link_max_length</a>;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    </div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="comment">// In scaled coordinates. Used by the concentric infill pattern to clip the loops to create extrusion paths.</span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#a0eb5f5cab82248f199168186da375284">   44</a></span>&#160;    <a class="code" href="namespace_slic3r.html#ab6d77625bc973b0c03e577944f90f297">coord_t</a>     <a class="code" href="class_slic3r_1_1_fill.html#a0eb5f5cab82248f199168186da375284">loop_clipping</a>;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    </div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="comment">// In scaled coordinates. Bounding box of the 2D projection of the object.</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="comment">// If not defined, the bounding box of each single expolygon is used.</span></div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#aa39166f35639ffe6c80b467ee251d97b">   48</a></span>&#160;    <a class="code" href="class_slic3r_1_1_bounding_box.html">BoundingBox</a> <a class="code" href="class_slic3r_1_1_fill.html#aa39166f35639ffe6c80b467ee251d97b">bounding_box</a>;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    </div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="comment">// Fill density, fraction in &lt;0, 1&gt;</span></div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#ad7c1a26cf2aca99c48a0aaa4ad725ee3">   51</a></span>&#160;    <span class="keywordtype">float</span>       <a class="code" href="class_slic3r_1_1_fill.html#ad7c1a26cf2aca99c48a0aaa4ad725ee3">density</a>;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="comment">// Don&#39;t connect the fill lines around the inner perimeter.</span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#a216f96303da59b4360f6b12d13b011ba">   54</a></span>&#160;    <span class="keywordtype">bool</span>        <a class="code" href="class_slic3r_1_1_fill.html#a216f96303da59b4360f6b12d13b011ba">dont_connect</a>;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="comment">// Don&#39;t adjust spacing to fill the space evenly.</span></div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#a20fff5484c23994c677f0d8b2048ee77">   57</a></span>&#160;    <span class="keywordtype">bool</span>        <a class="code" href="class_slic3r_1_1_fill.html#a20fff5484c23994c677f0d8b2048ee77">dont_adjust</a>;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="comment">// For Honeycomb.</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="comment">// we were requested to complete each loop;</span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="comment">// in this case we don&#39;t try to make more continuous paths</span></div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#a4e81e520b7e10f70878141abf97c7f6b">   62</a></span>&#160;    <span class="keywordtype">bool</span>        <a class="code" href="class_slic3r_1_1_fill.html#a4e81e520b7e10f70878141abf97c7f6b">complete</a>;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keyword">static</span> <a class="code" href="class_slic3r_1_1_fill.html">Fill</a>* <a class="code" href="class_slic3r_1_1_fill.html#ae4f0ccb5cf9427ade958c67faa188c64">new_from_type</a>(<span class="keyword">const</span> <a class="code" href="namespace_slic3r.html#aa49ce8a748a4910451492842fa4bf1d0">InfillPattern</a> type);</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keyword">static</span> <a class="code" href="class_slic3r_1_1_fill.html">Fill</a>* <a class="code" href="class_slic3r_1_1_fill.html#ae4f0ccb5cf9427ade958c67faa188c64">new_from_type</a>(<span class="keyword">const</span> std::string &amp;type);</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_slic3r_1_1_fill.html">Fill</a>* <a class="code" href="class_slic3r_1_1_fill.html#a45b322ec6dd890d50c04d4f35bdf04a2">clone</a>() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#a39d0d160d3300bc7ef7c6bdd09ce86ff">   68</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_slic3r_1_1_fill.html#a39d0d160d3300bc7ef7c6bdd09ce86ff">~Fill</a>() {};</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    </div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="comment">// Implementations can override the following virtual methods:</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="comment">// Use bridge flow for the fill?</span></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#aaf8e9814b2950810f845f02a8547c224">   72</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_slic3r_1_1_fill.html#aaf8e9814b2950810f845f02a8547c224">use_bridge_flow</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; };</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="comment">// Do not sort the fill lines to optimize the print head path?</span></div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#a9c92987423a6b578c4456620bf8d4408">   75</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_slic3r_1_1_fill.html#a9c92987423a6b578c4456620bf8d4408">no_sort</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; };</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="comment">// Can this pattern be used for solid infill?</span></div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#aa4e365707b5c5e74abe3d20bdbcc004b">   78</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_slic3r_1_1_fill.html#aa4e365707b5c5e74abe3d20bdbcc004b">can_solid</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; };</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="comment">// Perform the fill.</span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="namespace_slic3r.html#a498065f79ccb865fc410d4afeacffc9c">Polylines</a> <a class="code" href="class_slic3r_1_1_fill.html#a79ef4e8d229a385d91a929c5bd9c0f9b">fill_surface</a>(<span class="keyword">const</span> <a class="code" href="class_slic3r_1_1_surface.html">Surface</a> &amp;surface);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    </div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#a5989abf5bbdb9532d33c80a079cb6d6a">   83</a></span>&#160;    <a class="code" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a> <a class="code" href="class_slic3r_1_1_fill.html#a5989abf5bbdb9532d33c80a079cb6d6a">spacing</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="class_slic3r_1_1_fill.html#a7c41579b4ad95b15c9468241e37862b4">_spacing</a>; };</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    </div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="comment">// the actual one in unscaled coordinates, we fill this while generating paths</span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <a class="code" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a> <a class="code" href="class_slic3r_1_1_fill.html#a7c41579b4ad95b15c9468241e37862b4">_spacing</a>;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    </div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#ab54c7a38fa419589fbc48f72999357d4">   89</a></span>&#160;    <a class="code" href="class_slic3r_1_1_fill.html#ab54c7a38fa419589fbc48f72999357d4">Fill</a>() :</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        layer_id(size_t(-1)),</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        z(0.f),</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        min_spacing(0.f),</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        endpoints_overlap(0.3f),</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        angle(0),</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        link_max_length(0),</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        loop_clipping(0),</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        density(0),</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        dont_connect(false),</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        dont_adjust(false),</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        complete(false),</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        _spacing(0.f)</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#aa70bd367e59c45c2c803367811e8d8ae">  102</a></span>&#160;        {};</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    </div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="keyword">typedef</span> std::pair&lt;float, Point&gt; <a class="code" href="class_slic3r_1_1_fill.html#aa70bd367e59c45c2c803367811e8d8ae">direction_t</a>;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    </div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="comment">// The expolygon may be modified by the method to avoid a copy.</span></div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#a83171760fd32ff9bcd0a4aa016f3211d">  107</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_slic3r_1_1_fill.html#a83171760fd32ff9bcd0a4aa016f3211d">_fill_surface_single</a>(</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>                    thickness_layers,</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="keyword">const</span> direction_t               &amp;direction, </div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        <a class="code" href="class_slic3r_1_1_ex_polygon.html">ExPolygon</a>                       &amp;expolygon, </div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <a class="code" href="namespace_slic3r.html#a498065f79ccb865fc410d4afeacffc9c">Polylines</a>*                      polylines_out) {};</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    </div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="comment">// Implementations can override the following virtual method:</span></div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="class_slic3r_1_1_fill.html#a5e6b2460dd2db46764168006bab78550">  114</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="class_slic3r_1_1_fill.html#a5e6b2460dd2db46764168006bab78550">_layer_angle</a>(<span class="keywordtype">size_t</span> idx)<span class="keyword"> const </span>{</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keywordflow">return</span> (idx % 2) == 0 ? (M_PI/2.) : 0;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    };</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    direction_t <a class="code" href="class_slic3r_1_1_fill.html#a7f031ea46d6a9cac1c5c2c277903c63d">_infill_direction</a>(<span class="keyword">const</span> <a class="code" href="class_slic3r_1_1_surface.html">Surface</a> &amp;surface) <span class="keyword">const</span>;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;};</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;} <span class="comment">// namespace Slic3r</span></div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">#endif // slic3r_Fill_hpp_</span></div><div class="ttc" id="class_slic3r_1_1_fill_html_a79ef4e8d229a385d91a929c5bd9c0f9b"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a79ef4e8d229a385d91a929c5bd9c0f9b">Slic3r::Fill::fill_surface</a></div><div class="ttdeci">virtual Polylines fill_surface(const Surface &amp;surface)</div><div class="ttdef"><b>Definition:</b> Fill.cpp:54</div></div>
<div class="ttc" id="class_slic3r_1_1_bounding_box_html"><div class="ttname"><a href="class_slic3r_1_1_bounding_box.html">Slic3r::BoundingBox</a></div><div class="ttdef"><b>Definition:</b> BoundingBox.hpp:58</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_aa4e365707b5c5e74abe3d20bdbcc004b"><div class="ttname"><a href="class_slic3r_1_1_fill.html#aa4e365707b5c5e74abe3d20bdbcc004b">Slic3r::Fill::can_solid</a></div><div class="ttdeci">virtual bool can_solid() const</div><div class="ttdef"><b>Definition:</b> Fill.hpp:78</div></div>
<div class="ttc" id="namespace_slic3r_html_ab6d77625bc973b0c03e577944f90f297"><div class="ttname"><a href="namespace_slic3r.html#ab6d77625bc973b0c03e577944f90f297">Slic3r::coord_t</a></div><div class="ttdeci">long coord_t</div><div class="ttdef"><b>Definition:</b> libslic3r.h:41</div></div>
<div class="ttc" id="namespace_slic3r_html_aa49ce8a748a4910451492842fa4bf1d0"><div class="ttname"><a href="namespace_slic3r.html#aa49ce8a748a4910451492842fa4bf1d0">Slic3r::InfillPattern</a></div><div class="ttdeci">InfillPattern</div><div class="ttdef"><b>Definition:</b> PrintConfig.hpp:36</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_af8adc3aa53df4a6ec46f6e798d9c79f5"><div class="ttname"><a href="class_slic3r_1_1_fill.html#af8adc3aa53df4a6ec46f6e798d9c79f5">Slic3r::Fill::min_spacing</a></div><div class="ttdeci">coordf_t min_spacing</div><div class="ttdef"><b>Definition:</b> Fill.hpp:30</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_ad7c1a26cf2aca99c48a0aaa4ad725ee3"><div class="ttname"><a href="class_slic3r_1_1_fill.html#ad7c1a26cf2aca99c48a0aaa4ad725ee3">Slic3r::Fill::density</a></div><div class="ttdeci">float density</div><div class="ttdef"><b>Definition:</b> Fill.hpp:51</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_a9c92987423a6b578c4456620bf8d4408"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a9c92987423a6b578c4456620bf8d4408">Slic3r::Fill::no_sort</a></div><div class="ttdeci">virtual bool no_sort() const</div><div class="ttdef"><b>Definition:</b> Fill.hpp:75</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_adc87bb3ac6251d9c145c963c6dd5ca1e"><div class="ttname"><a href="class_slic3r_1_1_fill.html#adc87bb3ac6251d9c145c963c6dd5ca1e">Slic3r::Fill::endpoints_overlap</a></div><div class="ttdeci">float endpoints_overlap</div><div class="ttdef"><b>Definition:</b> Fill.hpp:33</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_a5989abf5bbdb9532d33c80a079cb6d6a"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a5989abf5bbdb9532d33c80a079cb6d6a">Slic3r::Fill::spacing</a></div><div class="ttdeci">coordf_t spacing() const</div><div class="ttdef"><b>Definition:</b> Fill.hpp:83</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_ac27c24dafac249a26f8f040252a3a4c5"><div class="ttname"><a href="class_slic3r_1_1_fill.html#ac27c24dafac249a26f8f040252a3a4c5">Slic3r::Fill::layer_id</a></div><div class="ttdeci">size_t layer_id</div><div class="ttdef"><b>Definition:</b> Fill.hpp:24</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_a7f031ea46d6a9cac1c5c2c277903c63d"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a7f031ea46d6a9cac1c5c2c277903c63d">Slic3r::Fill::_infill_direction</a></div><div class="ttdeci">direction_t _infill_direction(const Surface &amp;surface) const</div><div class="ttdef"><b>Definition:</b> Fill.cpp:79</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_a54a56f5bc04922e2c94d215872c8647c"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a54a56f5bc04922e2c94d215872c8647c">Slic3r::Fill::link_max_length</a></div><div class="ttdeci">coord_t link_max_length</div><div class="ttdef"><b>Definition:</b> Fill.hpp:41</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_a0eb5f5cab82248f199168186da375284"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a0eb5f5cab82248f199168186da375284">Slic3r::Fill::loop_clipping</a></div><div class="ttdeci">coord_t loop_clipping</div><div class="ttdef"><b>Definition:</b> Fill.hpp:44</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_a12967046cdc37118b196e50e580a0ab2"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a12967046cdc37118b196e50e580a0ab2">Slic3r::Fill::z</a></div><div class="ttdeci">coordf_t z</div><div class="ttdef"><b>Definition:</b> Fill.hpp:27</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_a45b322ec6dd890d50c04d4f35bdf04a2"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a45b322ec6dd890d50c04d4f35bdf04a2">Slic3r::Fill::clone</a></div><div class="ttdeci">virtual Fill * clone() const =0</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_aad52233b49247e94b2823c23490a28e2"><div class="ttname"><a href="class_slic3r_1_1_fill.html#aad52233b49247e94b2823c23490a28e2">Slic3r::Fill::angle</a></div><div class="ttdeci">float angle</div><div class="ttdef"><b>Definition:</b> Fill.hpp:36</div></div>
<div class="ttc" id="namespace_slic3r_html_a2ac5c755948c74f5f5f975acd5057fe9"><div class="ttname"><a href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">Slic3r::coordf_t</a></div><div class="ttdeci">double coordf_t</div><div class="ttdef"><b>Definition:</b> libslic3r.h:42</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_a39d0d160d3300bc7ef7c6bdd09ce86ff"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a39d0d160d3300bc7ef7c6bdd09ce86ff">Slic3r::Fill::~Fill</a></div><div class="ttdeci">virtual ~Fill()</div><div class="ttdef"><b>Definition:</b> Fill.hpp:68</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_a83171760fd32ff9bcd0a4aa016f3211d"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a83171760fd32ff9bcd0a4aa016f3211d">Slic3r::Fill::_fill_surface_single</a></div><div class="ttdeci">virtual void _fill_surface_single(unsigned int thickness_layers, const direction_t &amp;direction, ExPolygon &amp;expolygon, Polylines *polylines_out)</div><div class="ttdef"><b>Definition:</b> Fill.hpp:107</div></div>
<div class="ttc" id="namespace_slic3r_html"><div class="ttname"><a href="namespace_slic3r.html">Slic3r</a></div><div class="ttdef"><b>Definition:</b> BoundingBox.cpp:4</div></div>
<div class="ttc" id="class_slic3r_1_1_ex_polygon_html"><div class="ttname"><a href="class_slic3r_1_1_ex_polygon.html">Slic3r::ExPolygon</a></div><div class="ttdef"><b>Definition:</b> ExPolygon.hpp:16</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_ae4f0ccb5cf9427ade958c67faa188c64"><div class="ttname"><a href="class_slic3r_1_1_fill.html#ae4f0ccb5cf9427ade958c67faa188c64">Slic3r::Fill::new_from_type</a></div><div class="ttdeci">static Fill * new_from_type(const InfillPattern type)</div><div class="ttdef"><b>Definition:</b> Fill.cpp:21</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_aa70bd367e59c45c2c803367811e8d8ae"><div class="ttname"><a href="class_slic3r_1_1_fill.html#aa70bd367e59c45c2c803367811e8d8ae">Slic3r::Fill::direction_t</a></div><div class="ttdeci">std::pair&lt; float, Point &gt; direction_t</div><div class="ttdef"><b>Definition:</b> Fill.hpp:102</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_ab54c7a38fa419589fbc48f72999357d4"><div class="ttname"><a href="class_slic3r_1_1_fill.html#ab54c7a38fa419589fbc48f72999357d4">Slic3r::Fill::Fill</a></div><div class="ttdeci">Fill()</div><div class="ttdef"><b>Definition:</b> Fill.hpp:89</div></div>
<div class="ttc" id="namespace_slic3r_html_a498065f79ccb865fc410d4afeacffc9c"><div class="ttname"><a href="namespace_slic3r.html#a498065f79ccb865fc410d4afeacffc9c">Slic3r::Polylines</a></div><div class="ttdeci">std::vector&lt; Polyline &gt; Polylines</div><div class="ttdef"><b>Definition:</b> Polyline.hpp:14</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_a216f96303da59b4360f6b12d13b011ba"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a216f96303da59b4360f6b12d13b011ba">Slic3r::Fill::dont_connect</a></div><div class="ttdeci">bool dont_connect</div><div class="ttdef"><b>Definition:</b> Fill.hpp:54</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_a7c41579b4ad95b15c9468241e37862b4"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a7c41579b4ad95b15c9468241e37862b4">Slic3r::Fill::_spacing</a></div><div class="ttdeci">coordf_t _spacing</div><div class="ttdef"><b>Definition:</b> Fill.hpp:83</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_aaf8e9814b2950810f845f02a8547c224"><div class="ttname"><a href="class_slic3r_1_1_fill.html#aaf8e9814b2950810f845f02a8547c224">Slic3r::Fill::use_bridge_flow</a></div><div class="ttdeci">virtual bool use_bridge_flow() const</div><div class="ttdef"><b>Definition:</b> Fill.hpp:72</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_a4e81e520b7e10f70878141abf97c7f6b"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a4e81e520b7e10f70878141abf97c7f6b">Slic3r::Fill::complete</a></div><div class="ttdeci">bool complete</div><div class="ttdef"><b>Definition:</b> Fill.hpp:62</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_a20fff5484c23994c677f0d8b2048ee77"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a20fff5484c23994c677f0d8b2048ee77">Slic3r::Fill::dont_adjust</a></div><div class="ttdeci">bool dont_adjust</div><div class="ttdef"><b>Definition:</b> Fill.hpp:57</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_aa39166f35639ffe6c80b467ee251d97b"><div class="ttname"><a href="class_slic3r_1_1_fill.html#aa39166f35639ffe6c80b467ee251d97b">Slic3r::Fill::bounding_box</a></div><div class="ttdeci">BoundingBox bounding_box</div><div class="ttdef"><b>Definition:</b> Fill.hpp:48</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html"><div class="ttname"><a href="class_slic3r_1_1_fill.html">Slic3r::Fill</a></div><div class="ttdef"><b>Definition:</b> Fill.hpp:20</div></div>
<div class="ttc" id="class_slic3r_1_1_fill_html_a5e6b2460dd2db46764168006bab78550"><div class="ttname"><a href="class_slic3r_1_1_fill.html#a5e6b2460dd2db46764168006bab78550">Slic3r::Fill::_layer_angle</a></div><div class="ttdeci">virtual float _layer_angle(size_t idx) const</div><div class="ttdef"><b>Definition:</b> Fill.hpp:114</div></div>
<div class="ttc" id="class_slic3r_1_1_surface_html"><div class="ttname"><a href="class_slic3r_1_1_surface.html">Slic3r::Surface</a></div><div class="ttdef"><b>Definition:</b> Surface.hpp:11</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
